$(".img-dust").hide();
$(".img-pokemon").hide();
var $redirect1 = function redirect1() {
	window.location.href = "creerPartie.html";
};
var $redirect2 = function redirect2() {
	window.location.href = "listerParties.html";
};
var $redirect3 = function redirect3() {
	window.location.href = "listerPartiesSuspendues.html";
};
var $showPokemon1 = function showPokemon1() {
	$(".pokeball1").fadeOut();
	$(".img-dust1").fadeIn();
	$(".img-dust1").delay(400).fadeOut();
	$(".img-pokemon1").delay(400).fadeIn(1500, $redirect1);
};
var $showPokemon2 = function showPokemon2() {
	$(".pokeball2").fadeOut();
	$(".img-dust2").fadeIn();
	$(".img-dust2").delay(400).fadeOut();
	$(".img-pokemon2").delay(400).fadeIn(1500, $redirect2);
};
var $showPokemon3 = function showPokemon3() {
	$(".pokeball3").fadeOut();
	$(".img-dust3").fadeIn();
	$(".img-dust3").delay(400).fadeOut();
	$(".img-pokemon3").delay(400).fadeIn(1500, $redirect3);
};
$(".btn1").click($showPokemon1);
$(".btn2").click($showPokemon2);
$(".btn3").click($showPokemon3);